Microsoft Windows graphic

Using commands and carriage returns in Switch.inf

In Switch.inf scripts, you usually must include <cr>, which indicates a carriage return, at the end of a command. The carriage return causes the remote computer to process the command immediately. If you do not include <cr>, the remote computer may not recognize the command.

In other situations, you cannot use <cr> because the remote computer accepts a command without a carriage return and requires time to process the command. This situation mainly applies when you are sending a series of commands without expecting a response.

For more information about activating a Switch.inf script, see To activate a logon script. For more information about Switch.inf scripts, see Automating the dial-up logon process by using Switch.inf scripts.